import request from '@/utils/request';
import { AxiosPromise } from 'axios';
import { AgentMrRefundDetailsVO, AgentMrRefundDetailsForm, AgentMrRefundDetailsQuery } from '@/api/business/agentMrRefundDetails/types';

/**
 * 查询医代退款详情列表
 * @param query
 * @returns {*}
 */

export const listAgentMrRefundDetails = (query?: AgentMrRefundDetailsQuery): AxiosPromise<AgentMrRefundDetailsVO[]> => {
  return request({
    url: '/business/agentMrRefundDetails/list',
    method: 'get',
    params: query
  });
};

/**
 * 查询医代退款详情详细
 * @param id
 */
export const getAgentMrRefundDetails = (id: string | number): AxiosPromise<AgentMrRefundDetailsVO> => {
  return request({
    url: '/business/agentMrRefundDetails/' + id,
    method: 'get'
  });
};

/**
 * 新增医代退款详情
 * @param data
 */
// export const addAgentMrRefundDetails = (data: AgentMrRefundDetailsForm) => {
//   return request({
//     url: '/business/agentMrRefundDetails',
//     method: 'post',
//     data: data
//   });
// };

/**
 * 修改医代退款详情
 * @param data
 */
// export const updateAgentMrRefundDetails = (data: AgentMrRefundDetailsForm) => {
//   return request({
//     url: '/business/agentMrRefundDetails',
//     method: 'put',
//     data: data
//   });
// };

/**
 * 删除医代退款详情
 * @param id
 */
// export const delAgentMrRefundDetails = (id: string | number | Array<string | number>) => {
//   return request({
//     url: '/business/agentMrRefundDetails/' + id,
//     method: 'delete'
//   });
// };
